package OOP.day07;

public class Car {
    String brand;
    String price;
    String color;
    public Car() {
    }

    public Car(String brand, String price, String color) {
        this.brand = brand;
        this.price = price;
        this.color = color;
    }

    void start(){
        System.out.println(brand + "牌子的" + color + "颜色的" + price +"￥的车启动了");
    }

    void run(){
        System.out.println(brand + "牌子的" + color + "颜色的" + price +"￥的车正在行驶");
    }

    void stop(){
        System.out.println(brand + "牌子的" + color + "颜色的" + price +"￥的车停止了");
    }
}
